import 'package:json_annotation/json_annotation.dart';
part 'girl.g.dart';

@JsonSerializable()
class GirlModel {
  GirlModel(this.code, this.msg, this.newslist);
  final int code;
  final String msg;
  final List<GirlItem> newslist;
  factory GirlModel.fromJson(Map<String, dynamic> json) =>
      _$GirlModelFromJson(json);
  Map<String, dynamic> toJson(json) => _$GirlModelToJson(json);
}

@JsonSerializable()
class GirlItem {
  GirlItem(this.ctime, this.title, this.description, this.picUrl, this.url);
  final String ctime;
  final String title;
  final String description;
  final String picUrl;
  final String url;
  factory GirlItem.fromJson(Map<String, dynamic> json) =>
      _$GirlItemFromJson(json);
  Map<String, dynamic> toJson(json) => _$GirlItemToJson(json);
}
